
// import React from 'react'

import { useMatches } from "react-router-dom"

function useBtns(type) {
    const match = useMatches()
    const { btns } = match[1].data
    return btns.includes(type)
}

export default useBtns
